package cn.springcloud.fix.auth.api.request;

import cn.springcloud.fix.auth.api.response.CheckPermissionResponse;
import cn.springcloud.fix.common.core.base.BaseRequest;
import cn.springcloud.fix.common.core.exception.ApiRuleException;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class CheckPermissionRequest extends BaseRequest<CheckPermissionResponse> {

    @NotEmpty
    private String url;

    @NotEmpty
    private String method;

    @Override
    public Class getResponseClass() {
        return CheckPermissionResponse.class;
    }

    @Override
    public String getApiMethodName() {
        return "taobao.check.permission.request";
    }

    @Override
    public void check() throws ApiRuleException {

    }
}
